/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package Wires.provider;

import Wires.util.WiresAdapterFactory;

import java.util.ArrayList;
import java.util.Collection;

import org.eclipse.emf.common.notify.Adapter;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.Notifier;

import org.eclipse.emf.edit.provider.ChangeNotifier;
import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
import org.eclipse.emf.edit.provider.ComposedAdapterFactory;
import org.eclipse.emf.edit.provider.IChangeNotifier;
import org.eclipse.emf.edit.provider.IDisposable;
import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
import org.eclipse.emf.edit.provider.IItemLabelProvider;
import org.eclipse.emf.edit.provider.IItemPropertySource;
import org.eclipse.emf.edit.provider.INotifyChangedListener;
import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
import org.eclipse.emf.edit.provider.ITreeItemContentProvider;

/**
 * This is the factory that is used to provide the interfaces needed to support Viewers.
 * The adapters generated by this factory convert EMF adapter notifications into calls to {@link #fireNotifyChanged fireNotifyChanged}.
 * The adapters also support Eclipse property sheets.
 * Note that most of the adapters are shared among multiple instances.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public class WiresItemProviderAdapterFactory extends WiresAdapterFactory implements ComposeableAdapterFactory, IChangeNotifier, IDisposable {
	/**
	 * This keeps track of the root adapter factory that delegates to this adapter factory.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected ComposedAdapterFactory parentAdapterFactory;

	/**
	 * This is used to implement {@link org.eclipse.emf.edit.provider.IChangeNotifier}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected IChangeNotifier changeNotifier = new ChangeNotifier();

	/**
	 * This keeps track of all the supported types checked by {@link #isFactoryForType isFactoryForType}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected Collection<Object> supportedTypes = new ArrayList<Object>();

	/**
	 * This constructs an instance.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public WiresItemProviderAdapterFactory() {
		supportedTypes.add(IEditingDomainItemProvider.class);
		supportedTypes.add(IStructuredItemContentProvider.class);
		supportedTypes.add(ITreeItemContentProvider.class);
		supportedTypes.add(IItemLabelProvider.class);
		supportedTypes.add(IItemPropertySource.class);
	}

	/**
	 * This keeps track of the one adapter used for all {@link Wires.Query} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected QueryItemProvider queryItemProvider;

	/**
	 * This creates an adapter for a {@link Wires.Query}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createQueryAdapter() {
		if (queryItemProvider == null) {
			queryItemProvider = new QueryItemProvider(this);
		}

		return queryItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link Wires.AtomicModelTransformation} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected AtomicModelTransformationItemProvider atomicModelTransformationItemProvider;

	/**
	 * This creates an adapter for a {@link Wires.AtomicModelTransformation}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createAtomicModelTransformationAdapter() {
		if (atomicModelTransformationItemProvider == null) {
			atomicModelTransformationItemProvider = new AtomicModelTransformationItemProvider(this);
		}

		return atomicModelTransformationItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link Wires.ModelType} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected ModelTypeItemProvider modelTypeItemProvider;

	/**
	 * This creates an adapter for a {@link Wires.ModelType}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createModelTypeAdapter() {
		if (modelTypeItemProvider == null) {
			modelTypeItemProvider = new ModelTypeItemProvider(this);
		}

		return modelTypeItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link Wires.DecisionNode} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected DecisionNodeItemProvider decisionNodeItemProvider;

	/**
	 * This creates an adapter for a {@link Wires.DecisionNode}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createDecisionNodeAdapter() {
		if (decisionNodeItemProvider == null) {
			decisionNodeItemProvider = new DecisionNodeItemProvider(this);
		}

		return decisionNodeItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link Wires.DataFlow} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected DataFlowItemProvider dataFlowItemProvider;

	/**
	 * This creates an adapter for a {@link Wires.DataFlow}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createDataFlowAdapter() {
		if (dataFlowItemProvider == null) {
			dataFlowItemProvider = new DataFlowItemProvider(this);
		}

		return dataFlowItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link Wires.QueryType} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected QueryTypeItemProvider queryTypeItemProvider;

	/**
	 * This creates an adapter for a {@link Wires.QueryType}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createQueryTypeAdapter() {
		if (queryTypeItemProvider == null) {
			queryTypeItemProvider = new QueryTypeItemProvider(this);
		}

		return queryTypeItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link Wires.Model} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected ModelItemProvider modelItemProvider;

	/**
	 * This creates an adapter for a {@link Wires.Model}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createModelAdapter() {
		if (modelItemProvider == null) {
			modelItemProvider = new ModelItemProvider(this);
		}

		return modelItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link Wires.BasicData} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected BasicDataItemProvider basicDataItemProvider;

	/**
	 * This creates an adapter for a {@link Wires.BasicData}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createBasicDataAdapter() {
		if (basicDataItemProvider == null) {
			basicDataItemProvider = new BasicDataItemProvider(this);
		}

		return basicDataItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link Wires.CompositeTransformationType} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected CompositeTransformationTypeItemProvider compositeTransformationTypeItemProvider;

	/**
	 * This creates an adapter for a {@link Wires.CompositeTransformationType}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createCompositeTransformationTypeAdapter() {
		if (compositeTransformationTypeItemProvider == null) {
			compositeTransformationTypeItemProvider = new CompositeTransformationTypeItemProvider(this);
		}

		return compositeTransformationTypeItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link Wires.CompositeTransformation} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected CompositeTransformationItemProvider compositeTransformationItemProvider;

	/**
	 * This creates an adapter for a {@link Wires.CompositeTransformation}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createCompositeTransformationAdapter() {
		if (compositeTransformationItemProvider == null) {
			compositeTransformationItemProvider = new CompositeTransformationItemProvider(this);
		}

		return compositeTransformationItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link Wires.BasicDataType} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected BasicDataTypeItemProvider basicDataTypeItemProvider;

	/**
	 * This creates an adapter for a {@link Wires.BasicDataType}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createBasicDataTypeAdapter() {
		if (basicDataTypeItemProvider == null) {
			basicDataTypeItemProvider = new BasicDataTypeItemProvider(this);
		}

		return basicDataTypeItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link Wires.WiresSpecification} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected WiresSpecificationItemProvider wiresSpecificationItemProvider;

	/**
	 * This creates an adapter for a {@link Wires.WiresSpecification}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createWiresSpecificationAdapter() {
		if (wiresSpecificationItemProvider == null) {
			wiresSpecificationItemProvider = new WiresSpecificationItemProvider(this);
		}

		return wiresSpecificationItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link Wires.LibraryRef} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected LibraryRefItemProvider libraryRefItemProvider;

	/**
	 * This creates an adapter for a {@link Wires.LibraryRef}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createLibraryRefAdapter() {
		if (libraryRefItemProvider == null) {
			libraryRefItemProvider = new LibraryRefItemProvider(this);
		}

		return libraryRefItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link Wires.Library} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected LibraryItemProvider libraryItemProvider;

	/**
	 * This creates an adapter for a {@link Wires.Library}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createLibraryAdapter() {
		if (libraryItemProvider == null) {
			libraryItemProvider = new LibraryItemProvider(this);
		}

		return libraryItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link Wires.InputFormalParameter} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected InputFormalParameterItemProvider inputFormalParameterItemProvider;

	/**
	 * This creates an adapter for a {@link Wires.InputFormalParameter}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createInputFormalParameterAdapter() {
		if (inputFormalParameterItemProvider == null) {
			inputFormalParameterItemProvider = new InputFormalParameterItemProvider(this);
		}

		return inputFormalParameterItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link Wires.OutputFormalParameter} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected OutputFormalParameterItemProvider outputFormalParameterItemProvider;

	/**
	 * This creates an adapter for a {@link Wires.OutputFormalParameter}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createOutputFormalParameterAdapter() {
		if (outputFormalParameterItemProvider == null) {
			outputFormalParameterItemProvider = new OutputFormalParameterItemProvider(this);
		}

		return outputFormalParameterItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link Wires.InputActualParameter} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected InputActualParameterItemProvider inputActualParameterItemProvider;

	/**
	 * This creates an adapter for a {@link Wires.InputActualParameter}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createInputActualParameterAdapter() {
		if (inputActualParameterItemProvider == null) {
			inputActualParameterItemProvider = new InputActualParameterItemProvider(this);
		}

		return inputActualParameterItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link Wires.OutputActualParameter} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected OutputActualParameterItemProvider outputActualParameterItemProvider;

	/**
	 * This creates an adapter for a {@link Wires.OutputActualParameter}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createOutputActualParameterAdapter() {
		if (outputActualParameterItemProvider == null) {
			outputActualParameterItemProvider = new OutputActualParameterItemProvider(this);
		}

		return outputActualParameterItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link Wires.AtomicModelTransfomationType} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected AtomicModelTransfomationTypeItemProvider atomicModelTransfomationTypeItemProvider;

	/**
	 * This creates an adapter for a {@link Wires.AtomicModelTransfomationType}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createAtomicModelTransfomationTypeAdapter() {
		if (atomicModelTransfomationTypeItemProvider == null) {
			atomicModelTransfomationTypeItemProvider = new AtomicModelTransfomationTypeItemProvider(this);
		}

		return atomicModelTransfomationTypeItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link Wires.IdentityTransformation} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected IdentityTransformationItemProvider identityTransformationItemProvider;

	/**
	 * This creates an adapter for a {@link Wires.IdentityTransformation}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createIdentityTransformationAdapter() {
		if (identityTransformationItemProvider == null) {
			identityTransformationItemProvider = new IdentityTransformationItemProvider(this);
		}

		return identityTransformationItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link Wires.GenericTransformation} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected GenericTransformationItemProvider genericTransformationItemProvider;

	/**
	 * This creates an adapter for a {@link Wires.GenericTransformation}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createGenericTransformationAdapter() {
		if (genericTransformationItemProvider == null) {
			genericTransformationItemProvider = new GenericTransformationItemProvider(this);
		}

		return genericTransformationItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link Wires.TypeParameter} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected TypeParameterItemProvider typeParameterItemProvider;

	/**
	 * This creates an adapter for a {@link Wires.TypeParameter}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createTypeParameterAdapter() {
		if (typeParameterItemProvider == null) {
			typeParameterItemProvider = new TypeParameterItemProvider(this);
		}

		return typeParameterItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link Wires.Model2TextTransformation} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected Model2TextTransformationItemProvider model2TextTransformationItemProvider;

	/**
	 * This creates an adapter for a {@link Wires.Model2TextTransformation}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createModel2TextTransformationAdapter() {
		if (model2TextTransformationItemProvider == null) {
			model2TextTransformationItemProvider = new Model2TextTransformationItemProvider(this);
		}

		return model2TextTransformationItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link Wires.Model2TextTransformationType} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected Model2TextTransformationTypeItemProvider model2TextTransformationTypeItemProvider;

	/**
	 * This creates an adapter for a {@link Wires.Model2TextTransformationType}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createModel2TextTransformationTypeAdapter() {
		if (model2TextTransformationTypeItemProvider == null) {
			model2TextTransformationTypeItemProvider = new Model2TextTransformationTypeItemProvider(this);
		}

		return model2TextTransformationTypeItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link Wires.GenericQuery} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected GenericQueryItemProvider genericQueryItemProvider;

	/**
	 * This creates an adapter for a {@link Wires.GenericQuery}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createGenericQueryAdapter() {
		if (genericQueryItemProvider == null) {
			genericQueryItemProvider = new GenericQueryItemProvider(this);
		}

		return genericQueryItemProvider;
	}

	/**
	 * This returns the root adapter factory that contains this factory.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public ComposeableAdapterFactory getRootAdapterFactory() {
		return parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory();
	}

	/**
	 * This sets the composed adapter factory that contains this factory.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory) {
		this.parentAdapterFactory = parentAdapterFactory;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public boolean isFactoryForType(Object type) {
		return supportedTypes.contains(type) || super.isFactoryForType(type);
	}

	/**
	 * This implementation substitutes the factory itself as the key for the adapter.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter adapt(Notifier notifier, Object type) {
		return super.adapt(notifier, this);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Object adapt(Object object, Object type) {
		if (isFactoryForType(type)) {
			Object adapter = super.adapt(object, type);
			if (!(type instanceof Class) || (((Class<?>)type).isInstance(adapter))) {
				return adapter;
			}
		}

		return null;
	}

	/**
	 * This adds a listener.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void addListener(INotifyChangedListener notifyChangedListener) {
		changeNotifier.addListener(notifyChangedListener);
	}

	/**
	 * This removes a listener.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void removeListener(INotifyChangedListener notifyChangedListener) {
		changeNotifier.removeListener(notifyChangedListener);
	}

	/**
	 * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void fireNotifyChanged(Notification notification) {
		changeNotifier.fireNotifyChanged(notification);

		if (parentAdapterFactory != null) {
			parentAdapterFactory.fireNotifyChanged(notification);
		}
	}

	/**
	 * This disposes all of the item providers created by this factory. 
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void dispose() {
		if (queryItemProvider != null) queryItemProvider.dispose();
		if (atomicModelTransformationItemProvider != null) atomicModelTransformationItemProvider.dispose();
		if (modelTypeItemProvider != null) modelTypeItemProvider.dispose();
		if (decisionNodeItemProvider != null) decisionNodeItemProvider.dispose();
		if (dataFlowItemProvider != null) dataFlowItemProvider.dispose();
		if (queryTypeItemProvider != null) queryTypeItemProvider.dispose();
		if (modelItemProvider != null) modelItemProvider.dispose();
		if (basicDataItemProvider != null) basicDataItemProvider.dispose();
		if (compositeTransformationTypeItemProvider != null) compositeTransformationTypeItemProvider.dispose();
		if (compositeTransformationItemProvider != null) compositeTransformationItemProvider.dispose();
		if (basicDataTypeItemProvider != null) basicDataTypeItemProvider.dispose();
		if (wiresSpecificationItemProvider != null) wiresSpecificationItemProvider.dispose();
		if (libraryRefItemProvider != null) libraryRefItemProvider.dispose();
		if (libraryItemProvider != null) libraryItemProvider.dispose();
		if (inputFormalParameterItemProvider != null) inputFormalParameterItemProvider.dispose();
		if (outputFormalParameterItemProvider != null) outputFormalParameterItemProvider.dispose();
		if (inputActualParameterItemProvider != null) inputActualParameterItemProvider.dispose();
		if (outputActualParameterItemProvider != null) outputActualParameterItemProvider.dispose();
		if (atomicModelTransfomationTypeItemProvider != null) atomicModelTransfomationTypeItemProvider.dispose();
		if (identityTransformationItemProvider != null) identityTransformationItemProvider.dispose();
		if (genericTransformationItemProvider != null) genericTransformationItemProvider.dispose();
		if (typeParameterItemProvider != null) typeParameterItemProvider.dispose();
		if (model2TextTransformationItemProvider != null) model2TextTransformationItemProvider.dispose();
		if (model2TextTransformationTypeItemProvider != null) model2TextTransformationTypeItemProvider.dispose();
		if (genericQueryItemProvider != null) genericQueryItemProvider.dispose();
	}

}
